﻿using System;

namespace DBMock.Validators.Attributes
{
    /// <summary>
    /// 设置单元格为空字符串
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public class StringEmptyValidatorAttribute : BaseValidatorAttribute
    {
        /// <summary>
        /// 初始化StringEmptyValidatorAttribute
        /// </summary>
        /// <param name="emptyCase">设置空字符串的情况</param>
        /// <param name="value">指定值</param>
        public StringEmptyValidatorAttribute(StringEmptyCase emptyCase = StringEmptyCase.Null, string value = null)
            : base(typeof(StringEmptyValidator), emptyCase, value)
        {
        }
    }
}
